package com.feng.study.controller.circular;

import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
//@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class B {

        @Resource
//    @Autowired
    private A a;

    public void testB() {
        System.out.println("测试B---");
    }
}
